home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / var / lib / dpkg / info / ca-certificates.postrm < prev    next >
Text File  |  2008-06-03  |  2KB  |  61 lines

  1. #! /bin/sh
  2. # postrm script for ca-certificates
  3. #
  4. # see: dh_installdeb(1)
  5.  
  6. set -e
  7.  
  8. # summary of how this script can be called:
  9. #        * <postrm> `remove'
  10. #        * <postrm> `purge'
  11. #        * <old-postrm> `upgrade' <new-version>
  12. #        * <new-postrm> `failed-upgrade' <old-version>
  13. #        * <new-postrm> `abort-install'
  14. #        * <new-postrm> `abort-install' <old-version>
  15. #        * <new-postrm> `abort-upgrade' <old-version>
  16. #        * <disappearer's-postrm> `disappear' <r>overwrit>r> <new-version>
  17. # for details, see /usr/share/doc/packaging-manual/
  18.  
  19. case "$1" in
  20.     remove)
  21.        echo -n "Removing hash symlinks in /etc/ssl/certs ..."
  22.        find /etc/ssl/certs -type l -print | while read h
  23.        do
  24.      test -f "$h" || rm -f "$h"
  25.        done
  26.        echo done.
  27.        ;;
  28.  
  29.     purge)
  30.        rm -f /etc/ssl/certs/ca-certificates.crt*
  31.        # Fix for #454334
  32.        rmdir  --ignore-fail-on-non-empty /etc/ssl
  33.        rm -f /etc/ca-certificates.conf*
  34.        if test -e /usr/share/debconf/confmodule; then
  35.          . /usr/share/debconf/confmodule
  36.          db_purge
  37.        fi
  38.        ;;
  39.  
  40.     upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
  41.         ;;
  42.  
  43.     *)
  44.         echo "postrm called with unknown argument \`$1'" >&2
  45.         exit 1
  46.  
  47. esac
  48.  
  49. # dh_installdeb will replace this with shell code automatically
  50. # generated by other debhelper scripts.
  51.  
  52. # Automatically added by dh_installdebconf
  53. if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
  54.     . /usr/share/debconf/confmodule
  55.     db_purge
  56. fi
  57. # End automatically added section
  58.  
  59.  
  60.  
  61.